home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7607 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  900 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Using char array (CORRECTION!)
  5. Date: 25 Feb 1996 17:18:50 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4gr1pqINNrbb@keats.ugrad.cs.ubc.ca>
  8. References: <20FEB199609155775@sundog.caltech.edu> <4gqk5m$jno@aphex.direct.ca> <4gqv0kINNd2k@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4gqv0kINNd2k@keats.ugrad.cs.ubc.ca>,
  12. Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  13.  
  14. >The expression  &arr  is the address of the whole array, in this case a five
  15. >element array, and has the type, in cast notation (char *[5]).
  16.  
  17. That should, of course read:  char (*)[5] 
  18.  
  19. which is pointer to an array of five characters. The mistaken notation means an
  20. array of five character pointers.
  21.  
  22. (Dan Pop, go away! :)
  23. -- 
  24.  
  25.